#{extends 'profileLayout.html' /} #{ifErrors} ${error} #{/ifErrors}

 <form id="form1" runat="server">
	 #{extends 'main.html' /}

<h1>My Draft</h1>
	 <br>
#{if drafts}
#{list items: drafts, as:'draft'}

<a href = "@{Application.draftView(draft.id)}"> ${draft.content}</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href = "@{Application.publishDraft(draft.id)}">Publish as idea</a>
<br/>
#{/list}
#{/if}
#{else}
No Ideas in The  Draft !!
#{/else}</form>

